package org.miracle.api;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * Created by LeeXyan on 2017/6/29 0029 16:02
 */
@RestController
@RequestMapping("/v1")
public class CategoryController {
    private static final Logger LOGGER = LoggerFactory.getLogger(CategoryController.class);

    @Autowired
    CategoryService categoryService;

    @RequestMapping("/category")
    public String getCategory() {
        LOGGER.info("哇塞~鸟人哎哎哎哎");
        return categoryService.getCategory();
    }
}
